const debounce = (t) => {
    let timer;
    return function (fn, ...res) {
        clearTimeout(timer);
        timer = setTimeout(() => {
            fn.apply(this, res);
        }, t);
    };
};
export { debounce };
